home *** CD-ROM | disk | FTP | other *** search
/ PC Format (UK) 134 / PC Format DVD 2002.iso / Full / 3D Flash Animator / 3DFlashAnimator3Setup.exe / file0792_1f1671_1f1cbb.bin < prev    next >
Encoding:
Text File  |  2001-11-08  |  5.2 KB  |  174 lines

  1. <title> New Title</title>
  2.  
  3. <script language="EasyScript">
  4.  
  5. registry = "New\\Title";
  6.  
  7. center_flag = true;
  8. previous_text = "";
  9. current_text = "";
  10.  
  11. /////////////////
  12. function OnLoad ()
  13. {
  14.     object = new Title;
  15.     object.setDefaultName ();
  16. }
  17. ///////////////////
  18. function OnChange ()
  19. {
  20.     window.reparse();
  21. }
  22. ///////////////////////////////////
  23. function GetFontList (variable_name)
  24. {
  25.     string = "<select name=\"" + variable_name + "\" onChange=\"OnFontChange()\" scrollable>";
  26.     string += "<include vectorfonts>";
  27.     string += "</select>";
  28.     return string;
  29. }
  30. ///////////////////////
  31. function OnFontChange ()
  32. {
  33.     window.reparse();
  34. }
  35. ///////////////////////
  36. function OnTextChange ()
  37. {
  38.     current_text = object.text.substr (0,5);
  39.     if (current_text != previous_text){
  40.         previous_text = current_text;
  41.         preview[0].generate (current_text);
  42.         preview[0].centerPosition();}
  43. }
  44. /////////////////////////
  45. function GetPreviewText ()
  46. {
  47.     preview = new Bitmap;
  48.     preview.width = 160;
  49.     preview.height = 80;
  50.     preview.depth = 3;
  51.     preview.background_color_on = true;
  52.     title_copy = object.copy()
  53.     title_copy.generate (current_text);
  54.     preview.add (title_copy);
  55.     title_copy.centerPosition();
  56.     preview.create();
  57.     return preview;
  58. }
  59. //////////////////////
  60. function CreateTitle ()
  61. {
  62.     object.generate (object.text);
  63.     window.returnValue (object);
  64.     window.close ();
  65. }
  66. //////////////////////////
  67. function ChooseCharacter ()
  68. {
  69.     c = showModalDialog ("choose_character.html", object.font_charset);
  70.     if (c) object.text += toChar (c);
  71.     OnTextChange ();
  72. }
  73. </script>
  74.  
  75. <body bgcolor="normal" text="#000000" OnLoad="OnLoad()" OnEnter="CreateTitle()" translate>
  76. <div valign=middle>
  77.  
  78. <table width="100%" cellspacing=4 cellpadding=0 bgcolor="light" borderstyle="raised">
  79. <tr><td valign=top><img src="images/large_text.bitmap"><spacer>
  80. <td><table>
  81. <tr><td>
  82. <font size=5>Title</font>
  83. <td><input type="text" size=16 name="object.name"><spacer>
  84. </table></table>
  85.  
  86. <spacer height=4>
  87.  
  88. <table width="100%" cellspacing=3 cellpadding=8 bgcolor="light" borderstyle="raised">
  89. <tr><td>
  90.  
  91. <table cellpadding=0 cellspacing=0><tr>
  92.     <td valign=top width=exact><u>Text</u>  
  93.     <td valign=top width=exact><input type="textarea" size=30,3 name="object.text" charset="object.font_charset" onChange="OnTextChange()" selected>
  94. </table>
  95.  
  96. <tr><td><table cellpadding=0>
  97.     <tr><td>
  98.         <select name="object.letter_mode">
  99.         <option value="single">Create as a single paint object
  100.         <option value="separate">Create letters as separate paint objects
  101.         </select>
  102. </table>
  103.  
  104. </table>
  105.  
  106. <spacer height=4><!--//////////// Font ////////////////////-->
  107.  
  108. <table width="100%" cellspacing=0 cellpadding=8 bgcolor="light" borderstyle="raised">
  109. <tr><td>
  110. <table cellspacing=0 cellpadding=0><tr>
  111. <td><spacer width=8>
  112. <td><table cellspacing=0 cellpadding=0><tr>
  113.     <td><u>Font</u>  
  114.     <td><include value="GetFontList('object.font_face')">
  115.     <td><spacer width=8>
  116.     <td><input type="text" name="object.font_height" size=4 onBlur="OnChange()">
  117.         <img src="images/other_slider.bitmap" onclick="window.openSlider('object.font_height',8,200,1,'OnChange()','')">
  118.     <td><spacer width=12>
  119.     <td><table cellspacing=0 cellpadding=0>
  120.         <tr><td><input type="checkbox" name="object.font_bold" onChange="OnChange()">Bold
  121.         <tr><td><input type="checkbox" name="object.font_italic" onChange="OnChange()">Italic
  122.     </table>
  123.     <tr><td>Language<td>
  124.     <select name="object.font_charset" onChange="window.reparse()">
  125.         <option>normal
  126.         <option>symbol
  127.         <option>arabic
  128.         <option>baltic
  129.         <option>chinese
  130.         <option>easteuropean
  131.         <option>westeuropean
  132.         <option>greek
  133.         <option>hebrew
  134.         <option>japanese
  135.         <option>johab
  136.         <option>korean
  137.         <option>russian
  138.         <option>turkish
  139.         <option>thai
  140.         <option>vietnamese
  141.     </select>
  142.     <a button width=+6 height=+2 onMouseUp="ChooseCharacter()">Map</a>
  143.     </table>
  144. </table></table>
  145.  
  146. <spacer height=4><!--/// Tools ///////////////////-->
  147.  
  148. <table width="100%" cellspacing=0 cellpadding=0>
  149. <tr>
  150. <td width=exact valign=top>
  151.     <table cellspacing=2 cellpadding=0 borderstyle="sunken">
  152.     <tr><td><img object="GetPreviewText()">
  153.     </table>
  154. <td><spacer>
  155. <td valign=top>
  156.     <table cellspacing=0 cellpadding=0 bgcolor="light" borderstyle="raised" width=100%><tr><td height=80>
  157.     <table cellspacing=8 cellpadding=3>
  158.     <tr><td><input type="checkbox" name="object.brush.line" onChange="OnChange()">Line color<spacer width=16>
  159.         <td><img button object='object.brush.line_color.getButton(30,20)' onMouseUp="showModalDialog('choose_color.html', new Array (object.brush, 'line_color', true)),OnChange()" title="Choose line color" reparse>
  160.     <tr><td><input type="checkbox" name="object.brush.fill" onChange="OnChange()">Fill color<spacer width=24>
  161.         <td><img button object='object.brush.fill_color.getButton(30,20)' onMouseUp="showModalDialog('choose_color.html', new Array (object.brush, 'fill_color', true)),OnChange()" title="Choose fill color" reparse>
  162.     </table></table>
  163. </table>
  164.  
  165. <spacer height=8>
  166.  
  167. <table cellspacing=0 cellpadding=0 width="100%">
  168. <tr><td align=right>
  169. <a button onMouseUp="CreateTitle()" width=+10 height=+2><img src="images/small_text.bitmap" hspace=4>Create title</a>
  170. <a button onMouseUp="window.close()" width=+20 height=+2><img src="images/small_cancel.bitmap" hspace=4>Cancel</a>
  171. </table>
  172.  
  173. <spacer height=4>
  174.